package com.coolwar.netty.intranet;

import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class NacosHandler extends ChannelInboundHandlerAdapter {

    Channel serverChannel;

    public NacosHandler(Channel serverChannel) {
        this.serverChannel = serverChannel;
    }

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        serverChannel.writeAndFlush(msg);
    }

}